import {defineComponent, type PropType} from 'vue';
import './index.scss'; // 自动引用同名 CSS 文件

export default defineComponent({
    name: "button-com",
    props: {
        size: {
            type: String as PropType<'small' | 'larger'>,
            default: 'small'
        },
        disabled: {
            type: Boolean,
            default: false
        }
    },
    setup(props, {slots}) {
        return ()=> (
            <button class={['button-com__container', `button-container__${props.size}`]}>
                {slots.default?.()}
            </button>
        )
    }
});
